from django import template
from django.template.defaultfilters import stringfilter
import urllib

register = template.Library()

@stringfilter
def encode(value):
    return urllib.quote(value)

register.filter('encode', encode)
